<template>
  <el-container v-model="data.visible">
    <el-header>
      <el-page-header @click="back"></el-page-header>
      <div class="do">
        <el-button type="primary">保存</el-button>
      </div>
    </el-header>
    <!-- <el-main v-if="data">
		<sc-workflow v-model="data.nodeConfig"></sc-workflow>
	  </el-main> -->
  </el-container>
</template>
<script setup>
import { reactive } from 'vue';
import { useRouter } from 'vue-router';
const emit = defineEmits(['back']);
const router = useRouter();
//返回上一级
const back = () => {
  emit('back');
};
const data = reactive({
  visible: false,
});
//子组件的打开方法
const open = () => {
  //   if (mode != 'add') {
  //     setData(id);
  //   }
  data.visible = true;

  return data;
};
defineExpose({
  open,
});
</script>
